//
//  DataBaseHandle.h
//  littleLight's Project-A
//
//  Created by dllo on 16/5/27.
//  Copyright © 2016年 light. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "SpotModel.h"
#import "FMDB.h"



@interface DataBaseHandle : NSObject

+ (DataBaseHandle *)shareDataBaseHandle;
- (void)openFMDB;
- (void)createStoryTable;
//- (void)insertStoryModel:(SpotModel *)spoMod withList:(SpotListModel *)listMod withTrip:(TripModel *)tripMod;
- (void)dropStoryTable;
- (void)insertStoryModel:(SpotModel *)spoMod withId:(NSString *)storyId;
- (NSMutableArray *)selectAllStory;
//缓存
-(void)writeCachePlist:(NSString *)namePlist result:(id)result;
-(NSDictionary *)readCachePlist:(NSString *)namePlist;
- (void)deleteEverydayStoryRow:(NSString *)title;
- (NSArray *)readCaChePlist:(NSString *)namePlist;
@end
